#define _CRT_SECURE_NO_WARNINGS

#include"Heap.h"

void test01() {
	int arr[] = { 9,1,4,6,3,5,8,23,746,11 };
	Heap hp;
	HeapInit(&hp);
	for (int i = 0; i < sizeof(arr) / sizeof(arr[0]); i++) {
		HeapPush(&hp, arr[i]);
	}
	while (!HeapEmpty(&hp)) {
		printf("%d ", HeapTop(&hp));
		HeapPop(&hp);
	}
	HeapDestroy(&hp); 
}



int main() {
	test01();
	return 0;
}